package com.ws.universal.tools.loading.button;

import android.animation.ValueAnimator;
import android.graphics.DashPathEffect;
import android.graphics.PathEffect;

import kotlin.TypeCastException;
import kotlin.jvm.internal.Intrinsics;

public class LoadingButton$playSuccessAnimation$$inlined$apply$lambda$3 implements ValueAnimator.AnimatorUpdateListener {
    // $FF: synthetic field
    final LoadingButton this$0;

    LoadingButton$playSuccessAnimation$$inlined$apply$lambda$3(LoadingButton var1) {
        this.this$0 = var1;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        Intrinsics.checkExpressionValueIsNotNull(valueAnimator, "valueAnimator");
        Object var10000 = valueAnimator.getAnimatedValue();
        if (var10000 == null) {
            throw new TypeCastException("null cannot be cast to non-null type kotlin.Float");
        } else {
            float value = (Float) var10000;
            DashPathEffect pathEffect = new DashPathEffect(LoadingButton.access$getMSuccessPathIntervals$p(this.this$0), LoadingButton.access$getMSuccessPathLength$p(this.this$0) - LoadingButton.access$getMSuccessPathLength$p(this.this$0) * value);
            LoadingButton.access$getMPathEffectPaint$p(this.this$0).setPathEffect((PathEffect) pathEffect);
            this.this$0.invalidate();
        }
    }
}
